<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>">
	<s:head theme="ajax" debug="true"/>
	<link type="text/css" rel="stylesheet" href="css/style.css" />
	<script type="text/javascript" src="scripts/function.js"></script>
	<script type="text/javascript">
		dojo.event.topic.subscribe("/after",function(data,type,e){
			//document.getElementById("login").innerHTML = "Hello"
			alert(data);
			alert(type);
			alert(e);
		});
		
	</script>
</head>
<s:form cssClass="get" action="login.action" id="log">
用户名:<s:textfield name="name" cssClass="text"/>
密码：<s:password name="password" cssClass="password"/>
<s:hidden name="action" value="ajax"/>
<s:submit theme="ajax" formId="log" href="login.action" executeScripts="true" value="立即登录" />
</s:form>

